package com.nd.android.musicboxlibrary.business.comm;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadUtil {
	
	private ThreadUtil() {}
	
	private static ExecutorService mMoreExecutor = Executors.newCachedThreadPool();
	
	private static ExecutorService mFixedService = Executors.newFixedThreadPool( 1 );
	
	public static final void executeMore(Runnable runnable) {
		mMoreExecutor.execute( runnable );
	}
	
	public static final void executeQueue(Runnable runnable) {
		mFixedService.execute( runnable );
	}
}
